package com.app.bimo.library_db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * Created by newbiechen on 17-5-20.
 */
@Entity
public class BookRecord {
    //所属的书的id
    @Id
    private String bookId;

    private String uid;
    //阅读到了第几章
    private int chapter;
    //阅读到了第几章
    private String chapterId;
    //当前的页码
    private int pagePos;



    @Generated(hash = 592674407)
    public BookRecord(String bookId, String uid, int chapter, String chapterId,
            int pagePos) {
        this.bookId = bookId;
        this.uid = uid;
        this.chapter = chapter;
        this.chapterId = chapterId;
        this.pagePos = pagePos;
    }

    @Generated(hash = 1567951268)
    public BookRecord() {
    }



    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public int getChapter() {
        return chapter;
    }

    public void setChapter(int chapter) {
        this.chapter = chapter;
    }

    public int getPagePos() {
        return pagePos;
    }

    public void setPagePos(int pagePos) {
        this.pagePos = pagePos;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }
}
